<form class="layui-form" lay-filter="tpl_brand{$brand_sign}" action="{:url('brand/saveData')}">
	<input type="hidden" name="brand_sign" class="layui-input" />
	<input type="hidden" name="brand_id" class="layui-input" />
	<div class="layui-form-item">
		<label class="layui-form-label">品牌名称</label>
		<div class="layui-input-inline">
			<input type="text" name="brand_name" lay-verify="required" placeholder="请输入品牌名称" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">英文缩写</label>
		<div class="layui-input-inline">
			<input type="text" name="initails" placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">锁定</label>
		<div class="layui-input-inline">
			<select name="is_lock_goods" {if condition="menuAuth('brand_lock')"} {else /}disabled="disabled"{/if}>
				<option value="0">解锁</option>
				<option value="1">锁定</option>
			</select>
			
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">接口参数</label>
		<div class="layui-input-inline">
			<input type="text" name="api_option" placeholder="" autocomplete="off" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">品牌LOGO</label>
		<div class="layui-input-block">
			<blockquote class="layui-elem-quote layui-quote-nm">
				<div class="layui-upload-list" id="layui-upload-list{$brand_sign}"></div>
				<div class="layui-upload-drag brand_picture_upload" id="brand_picture_upload{$brand_sign}">
				  <i class="layui-icon layui-icon-upload"></i>
				  <p>点击或拖拽上传</p>
				</div>
			</blockquote>
		</div>
	</div>
	
	<div class="layui-form-item">
		<label class="layui-form-label">是否白名单</label>
		<div class="layui-input-inline">
			<select name="is_white">
				<option value="1">是</option>
				<option value="0">否</option>
			</select>
			
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">是否需要校验证书</label>
		<div class="layui-input-inline">
			<select name="is_need_cert">
				<option value="0">否</option>
				<option value="1">是</option>
			</select>
			
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">固定供应商</label>
		<div class="layui-input-inline" style="width: 60%;">
			<input type="text" name="fixed_supplier" placeholder="" autocomplete="off" class="layui-input">
			<div class="layui-form-mid layui-word-aux">英文逗号分割多个供应商ID</div>
		</div>
	</div>
	<div class="layui-form-item">
		<div class="layui-input-block">
			<button type="button" class="layui-btn layui-btn-normal" lay-submit lay-filter="submit_brand">保存数据</button>
			<button type="reset" class="layui-btn layui-btn-primary">重置</button>
		</div>
	</div>
</form>
<script>
	// 赋值
	var brand_sign = "{$brand_sign}";
	var brand_form_value = {$data};
</script>
<script src="/static/js/brand/brand_tpl.js" type="text/javascript" charset="utf-8"></script>
